﻿using Eldn.Wcf.Service;
using Eldn.Wcf.ServiceInterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.Text;
using System.Threading.Tasks;

namespace Eldn.Wcf.Hosting
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var host = new ServiceHost(typeof(TestService)))
            {
                host.Opened += delegate
                {
                    Console.WriteLine("Test service is open; press any key to terminate.");
                };

                host.Open();

                Console.ReadKey();
            }
        }
    }
}
